﻿// (c) Copyright Microsoft Corporation.
// This source is subject to [###LICENSE_NAME###].
// Please see [###LICENSE_LINK###] for details.
// All other rights reserved.

using System;

namespace EnsureWeb.Controls
{
    /// <summary>
    /// EventArgs used when Selected Date Changed.
    /// </summary>
    public class SelectedDateChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the SelectedDateChangedEventArgs class.
        /// </summary>
        /// <param name="oldDate">The oldDate value</param>
        /// <param name="newDate">The newDate value</param>
        public SelectedDateChangedEventArgs(DateTime oldDate, DateTime newDate)
        {
            this.OldDate = oldDate;
            this.NewDate = newDate;
        }

        /// <summary>
        /// Gets or sets the NewDate value.
        /// </summary>
        public DateTime NewDate { get; set; }

        /// <summary>
        /// Gets or sets the OldDate value.
        /// </summary>
        public DateTime OldDate { get; set; }
    }
}
